package inc
{
	import mx.controls.Alert;
	
	public class LotteryCfg
	{
		public function LotteryCfg()
		{
		}
		
		public static var REWARD_RATE_BASE:Number = 0.5; //返点变化最小单位
		
		public static var REWARD_RATE_5X:Number = 1000;
		public static var REWARD_RATE_4X:Number = 100;
		public static var REWARD_RATE_3X:Number = 10;
		public static var REWARD_RATE_2X:Number = 1;
		public static var REWARD_RATE_1X:Number = 0.1; //定位胆
		
		public static var BETWAY_5X_NAME:String = "五星";
		public static var BETWAY_4X_NAME:String = "四星";
		public static var BETWAY_3X_NAME:String = "三星";
		public static var BETWAY_2X_NAME:String = "二星";
		public static var BETWAY_1X_NAME:String = "定位胆";
		public static var BETWAY_BX_NAME:String = "不定位胆";
		
		//获取玩法变化与返点变化之间的倍率关系
		public static function getBetwayRewardRate(betName:String):Number{
			switch(betName){
				case BETWAY_5X_NAME:return REWARD_RATE_5X;break;
				case BETWAY_4X_NAME:return REWARD_RATE_4X;break;
				case BETWAY_3X_NAME:return REWARD_RATE_3X;break;
				case BETWAY_2X_NAME:return REWARD_RATE_2X;break;
				case BETWAY_1X_NAME:return REWARD_RATE_1X;break;
				default://Alert.show("找不到指定的玩法！");
				return 10;
			}
		}
	}
}